home *** CD-ROM | disk | FTP | other *** search
- Path: news4.noc.netcom.net!zdc!zippo!usenet
- Newsgroups: comp.lang.c
- Subject: Re: What is '?' in C mean....?????
- Message-ID: <DKyyr2.EEq@news.zippo.com>
- From: Jim McFarland <jgm6@orkand.em.cdc.gov>
- Date: Wed, 10 Jan 1996 14:25:49 GMT
- Sender: usenet@news.zippo.com
- References: <4cgsa8$bm2@wumpus.cc.uow.edu.au>
- <fcusack-0401961115540001@mudskipper.cac.psu.edu> <4ci5bb$8m4@www.gnofn.org>
- Organization: The Orkand Corporation
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- Nntp-Posting-Host: 158.111.166.77
- X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
- Mime-Version: 1.0
-
- clm01@www.gnofn.org (Christopher L Mayeux) wrote:
- > frank. (fcusack@tdx.org) wrote:
- >: > Could anyone here explain to me what is "?" means and what the purpose
- >: of using
- >:
- >: ? : is C's ternary operator. if the condition is met, perform the
- >: operation after the ?; if the condition is not met, perform the operation
- >: after the :
- >:
- >
- >What new perversion of C is that ???
- >
- >I've been programming in standard C for 12 years, and
- >never saw THAT in the manuals.
- >--
- >------------------------------------------------------------------------------
- >C.L. Mayeux - Owner, MSB Video <clm01@gnofn.org> - Affordable consumer videos.
-
- Are you serious?! You have never seen the "? :" operator, and you have
- 12 years experience with C?! Take another look at you manuals...
-
- P.S. C has been around for 12+ years, but ANSI/ISO Standard C has only
- been around about 6 years.
-
-
- Jim
-